import { service } from "../../../api/index.js";
import { ENV_CONFIG } from "../../../../config/index.js";

// pmi官方 验证邮箱是否可用
export const validateEmail = (data) => {
  return service.request({
    url: '/Register/ValidateEmail',
    baseURL: ENV_CONFIG.pmiUrl,
    method: "post",
    data
  });
};

// 获取验证码 https://edu.51cto.com/center/wejob/pmp-sign/get-pmi-reg-code
export const getPmiRegisterCode = (params) => {
  return service.request({
    url: '/center/wejob/pmp-sign/get-pmi-reg-code',
    method: "get",
    params
  });
}